From: Adrian Bunk Date: Fri, 14 Sep 2018 19:24:40 +0000 (+0200) Subject: Reduce the amount of debug information when building for 32bit architectures X-Git-Tag: archive/raspbian/1.14.0+dfsg-2+rpi1^2~137 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=5d464132f6f5eda642115407b8e940c6c06b5453;p=pcl.git Reduce the amount of debug information when building for 32bit architectures Closes: #908820 --- diff --git a/debian/rules b/debian/rules index 3c9ead54..377906f0 100755 --- a/debian/rules +++ b/debian/rules @@ -11,9 +11,8 @@ LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed CFLAGS+=$(CPPFLAGS) CXXFLAGS+=$(CPPFLAGS) -DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) -ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel)) - CXXFLAGS+=--param ggc-min-expand=20 +ifeq (32,$(DEB_HOST_ARCH_BITS)) + CXXFLAGS+=-g1 endif BUILD_DOC = $(if $(shell dh_listpackages | grep libpcl-doc),-DWITH_DOCS=ON)